package com.kgis.map.style {
	import com.kgis.map.style.AbstractStyle;
	import com.kgis.map.style.IStyle;

   /**
    * 面样式类
    */
   public class PolygonStyle extends AbstractStyle {
      /**填充颜色*/
      public var fillColor:int = 0xffffff;
      /**填充色透明度*/
      public var fillAlpha:Number = 1.0;
      /**边框宽度*/
      public var edgeWidth:Array = [1];
      /**边框颜色*/
      public var edgeColor:int = 0;
      /**边框透明度*/
      public var edgeAlpha:Number = 1.0;

      public function PolygonStyle() {
         super();
      }

      /**
       * 克隆
       */
      override public function clone():IStyle {
         var s:PolygonStyle = new PolygonStyle();
         s.edgeColor = this.edgeColor;
         s.fillColor = this.fillColor;
         s.edgeAlpha = this.edgeAlpha;
         s.edgeWidth = this.edgeWidth;
         s.fillAlpha = this.fillAlpha;
         return s;
      }
      
      public static function getDefaultStyle():PolygonStyle {
         var defaultStyle:PolygonStyle = new PolygonStyle();
         return defaultStyle;
      }
      
   }
}